package shiwenhui.com.taotao.portal.service;

import shiwenhui.com.taotao.common.pojo.TaotaoResult;
import shiwenhui.com.taotao.portal.pojo.CartItem;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;



public interface CartService {

    TaotaoResult updateCartItem(long itemId, int num, HttpServletRequest request, HttpServletResponse response);
    TaotaoResult addCartItem(long itemId, int num, HttpServletRequest request, HttpServletResponse response);
    List<CartItem> getCartItemList(HttpServletRequest request, HttpServletResponse response);
    TaotaoResult deleteCartItem(long itemId, HttpServletRequest request, HttpServletResponse response);
}
